<script>
  export default {
    name: "zTag",
    props:{
      text:{
        type: String,
        default: 'Tag'
      },
      color:{
        type: String,
        default: '#1676FF'
      },
      bgColor:{
        type: String,
        default: '#e8f1ff'
      },
      borColor:{
        type: String,
        default: '#d0e4ff'
      },
    },
    render(h) {
      const { color, bgColor, borColor } = this;
      const classes = ['z-tag',];
	    return h('span',{
        'class': classes,
		    'style': { backgroundColor: bgColor,color: color,borderColor: borColor },
        domProps: {
          innerHTML: this.$slots.default[0].text
        },
      })
    }
  }
</script>

<style scoped>
	.z-tag{
		background-color: #e8f1ff;
		border-color: #d0e4ff;
		display: inline-block;
		height: 32px;
		padding: 0 10px;
		line-height: 30px;
		font-size: 12px;
		color: #1676FF;
		border-width: 1px;
		border-style: solid;
		border-radius: 4px;
		box-sizing: border-box;
		white-space: nowrap;
	}
</style>
